<? if(!defined('IN_FANWE')) exit('Access Denied'); 
0
|| checkTplRefresh('./tpl/default/page/list_index.htm', './tpl/default/inc/header.htm', 1336494604, './public/tpl/compiled/page_list_index.tpl.php', './tpl/default', 'page/list_index')
|| checkTplRefresh('./tpl/default/page/list_index.htm', './tpl/default/inc/pages.htm', 1336494604, './public/tpl/compiled/page_list_index.tpl.php', './tpl/default', 'page/list_index')
|| checkTplRefresh('./tpl/default/page/list_index.htm', './tpl/default/inc/footer.htm', 1336494604, './public/tpl/compiled/page_list_index.tpl.php', './tpl/default', 'page/list_index')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=CHARSET?>" />
<title><? if(!empty($_FANWE['nav_title'])) { ?><?=$_FANWE['nav_title']?> - <? } if(empty($no_site_name)) { ?> <?=$_FANWE['setting']['site_title']?><? } ?></title>
<meta name="keywords" content="<?=$_FANWE['setting']['seo_keyword']?>" />
<meta name="description" content="<?=$_FANWE['setting']['seo_content']?>" />
<link type="text/css" rel="stylesheet" href="<?=TPL_PATH?>css/style.css" />
<script src="<?=PUBLIC_PATH?>js/jquery.js" type="text/javascript"></script>
<script src="<?=PUBLIC_PATH?>js/jquery.cookie.js" type="text/javascript"></script>
<script src="<?=PUBLIC_PATH?>js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="<?=PUBLIC_PATH?>js/jquery.lazyload.js" type="text/javascript"></script>
<script src="<?=PUBLIC_PATH?>js/base.js" type="text/javascript"></script>
<script src="<?=TPL_PATH?>js/script.js" type="text/javascript"></script>
<script type="text/javascript">
var SITE_PATH = '<?=SITE_PATH?>';
var SITE_URL = '<?=$_FANWE['site_url']?>';
var TPL_PATH = '<?=TPL_PATH?>';
var PUBLIC_PATH	 = '<?=PUBLIC_PATH?>';
var MODULE_NAME	 = '<?=MODULE_NAME?>';
var ACTION_NAME	 = '<?=ACTION_NAME?>';
var COOKIE_PRE = "<?=$_FANWE['config']['cookie']['cookie_pre']?>";
</script>
</head>
<body>
<div id="top" name="top" class="hbox">
<div class="fl">
<p>当前站点：【<?=$_FANWE['current_city']['name']?>团购网站大全】</p>
<a href="javascript:;" class="toggle">切换城市</a>
</div>
<div id="city-list" class="hidden"><? if(is_array($_FANWE['cache']['city']['py'])) foreach($_FANWE['cache']['city']['py'] as $key => $city_pys) { ?><dl>
<dt><?=$key?></dt>
<dd><? if(is_array($city_pys)) foreach($city_pys as $city_py) { if(!defined('IS_EXPIRED')) { ?><?php $goods_count = intval($_FANWE['cache']['goods']['citys']['now'][$city_py]); } if($city_py == CHINA_CITY_PY && $_FANWE['setting']['all_city'] == 1) { if(!defined('IS_EXPIRED')) { ?><?php $goods_count = $_FANWE['cache']['goods']['now_total_count']; } } elseif($city_py != CHINA_CITY_PY && $_FANWE['setting']['index_all'] == 1) { if(!defined('IS_EXPIRED')) { ?><?php $goods_count += intval($_FANWE['cache']['goods']['citys']['now'][CHINA_CITY_PY]); } } ?><?php $city = $_FANWE['cache']['city']['all'][$city_py]; ?><a href="<? if(defined('IS_EXPIRED')) { ?><?=$city['expired_url']?><? } else { ?><?=$city['url']?><? } ?>" pinYin="<?=$city_py?>" class="<? if($city['is_hot'] == 1) { ?>hot_city<? } if($city_py == CURRENT_CITY_PY) { ?> current<? } ?>"><?=$city['name']?><? if(!defined('IS_EXPIRED')) { ?><span class="count">(<?=$goods_count?>)</span><? } ?></a>
<? } ?>
</dd>
</dl>
<? } ?>
<div class="other"><a href="<? echo U('message/feedback'); ?>">没有找到城市请留言&raquo;</a></div>
</div>
<ul class="shares fr">
<li class="t">分享到：</li>
<li class="mq"><a href="#"onclick="$.copyText('#share-im');">MSN/QQ</a></li>
<li class="kx"><a  href="http://www.kaixin001.com/repaste/share.php?rurl=<?=$_FANWE['site_url']?>&amp;rtitle=<?=$_FANWE['setting']['site_name']?>" target="_blank" >开心</a></li>
<li class="rr"><a  href="http://share.renren.com/share/buttonshare.do?link=<?=$_FANWE['site_url']?>" target="_blank">人人</a></li>
<li class="db"><a  href="http://www.douban.com/recommend/?url=<?=$_FANWE['site_url']?>&amp;title=<? echo urlencode($_FANWE['setting']['site_name']); ?>" target="_blank">豆瓣</a></li>
<li class="sina"><a  href="http://v.t.sina.com.cn/share/share.php?url=<?=$_FANWE['site_url']?>&amp;title=<? echo urlencode($_FANWE['setting']['site_name']); ?>" target="_blank">新浪微博</a></li>
<li class="email"><a  href="mailto:?body=<? echo urlencode(utf8ToGB($_FANWE['setting']['site_name'])); ?> <?=$_FANWE['site_url']?>" target="_blank">邮件</a></li>
</ul>
<input id="share-im" type="hidden" value="<?=$_FANWE['setting']['site_title']?> <?=$_FANWE['site_url']?>"/>
</div>
<div id="head" class="hbox">
<div class="logo"><a href="<?=$_FANWE['site_url']?>"><img src="<?=SITE_PATH?><?=$_FANWE['setting']['shop_logo']?>" height="68" /></a></div>
<ul class="nav"><?php $nav_index = 0; if(is_array($_FANWE['cache']['nav']['main'])) foreach($_FANWE['cache']['nav']['main'] as $nav) { if($nav_index > 2) { ?>
<li class="i small<? if($nav['rec_module'] == MODULE_NAME) { ?> current<? } ?>"><a class="small" href="<?=$nav['url']?>" title="<?=$nav['name']?>" target="<?=$nav['target']?>"><?=$nav['name']?></a></li>
<? } else { ?>
<li class="i<? if($nav['rec_module'] == MODULE_NAME) { ?> current<? } ?>"><a href="<?=$nav['url']?>" title="<?=$nav['name']?>" target="<?=$nav['target']?>"><?=$nav['name']?></a></li>
<? } ?><?php $nav_index++; } ?><!--dynamic getAuctionMenu--></ul>
<div class="uc"><!--dynamic getUserInfo--></div>
</div>
<div id="nav" class="hbox">
<ul id="cateNav">
<li class="i"><a href="<? if(defined('IS_EXPIRED')) { echo U('goods/index',array('city'=>CURRENT_CITY_PY)); } else { echo U('index/index',array('city'=>CURRENT_CITY_PY)); } ?>" cateID="0">全部团购</a></li><? if(is_array($_FANWE['cache']['goods']['root_cates'])) foreach($_FANWE['cache']['goods']['root_cates'] as $catid) { ?><?php $cat = $_FANWE['cache']['goods']['cats'][$catid]; ?><li class="j"></li>
<li class="i" cateID="<?=$cat['id']?>"><a href="<? if(defined('IS_EXPIRED')) { echo U('goods/index',array('cat'=>$cat['id'],'city_py'=>CURRENT_CITY_PY)); } else { echo U('now/index',array('cat'=>$cat['id'],'city_py'=>CURRENT_CITY_PY)); } ?>" cateID="<?=$cat['id']?>"><?=$cat['name']?></a></li>
<? } ?>
</ul>
<div class="search">
<form name="header_serch" id="header_serch" action="<? if(MODULE_NAME == 'goods') { echo U('goods/search'); } else { echo U('now/search'); } ?>" method="POST">
<input type="hidden" name="action" value="search" />
<input type="text" id="serch_text" name="keyword" class="search-input inactive" value="<? if(!empty($keyword)) { ?><?=$keyword?><? } else { ?>请输入搜索的关键词！<? } ?>" empty="请输入搜索的关键词！"/>
<!--2011-01-30 update-->
<input type="image" src="<?=TPL_PATH?>images/btn_search.gif" id="head-search-submit" />
<input type="hidden" name="cat" value="<?=$cate_id?>" />
                    <input type="hidden" name="action" value="search" />
</form>
</div>
</div>
<script type="text/javascript"><!--dynamic getGoodsDynamics args=<?=$goods_result['ids']?>--></script><!--dynamic advLayout args=首页顶部通栏广告宽990px,,--><div class="blank12"></div>
<div class="hbox">
<div class="list-goods-search">
<? if($city_areas) { ?><?php $cache_areas = $_FANWE['cache']['city_area_'.CURRENT_CITY_PY]; if($area_id > 0) { ?><?php $aroot_id = $area_id; ?><?php $current_area = $cache_areas['all'][$area_id]; if($current_area['parent_id'] > 0) { ?><?php $aroot_id = $current_area['parent_id']; } } ?>

<div class="lgs-item lgs-area parent-area">
<div class="lgsi-title">商圈</div>
<div class="lgsi-list">
<a href="javascript:;" class="<? if($area_id == 0) { ?>active<? } ?>" areaID="0">全部 <span>(<?=$city_areas['gcount']?>)</span></a><? if(is_array($cache_areas['roots'])) foreach($cache_areas['roots'] as $rootid) { ?><?php $root_area = $cache_areas['all'][$rootid]; ?><?php $root_count = $city_areas['areas'][$root_area['name']]; ?><a href="javascript:;" class="<? if($aroot_id == $rootid) { ?>active<? } if($root_count == 0) { ?> disabled<? } ?>" areaID="<?=$rootid?>"><?=$root_area['name']?> <span>(<?=$root_count?>)</span></a>
<? } ?>
</div>
</div><?php $root_area = $cache_areas['all'][$aroot_id]; if(isset($root_area['childs'])) { ?>
<div class="lgs-item area-sub lgs-area" rel="<?=$rootid?>">
<div class="lgsi-list">
<strong><?=$root_area['name']?>:</strong>
<div><? if(is_array($root_area['childs'])) foreach($root_area['childs'] as $childid) { ?><?php $area = $cache_areas['all'][$childid]; ?><?php $area_count = $city_areas['areas'][$area['name']]; ?><a href="javascript:;" class="<? if($area_id == $childid) { ?>active<? } if($area_count == 0) { ?> disabled<? } ?>" areaID="<?=$childid?>"><?=$area['name']?> <span>(<?=$area_count?>)</span></a>
<? } ?>
</div>
</div>
</div>
<? } } if($cate_id > 0) { ?><?php $root_id = $cate_id; ?><?php $current_cate = $_FANWE['cache']['goods']['cats'][$cate_id]; if($current_cate['pid'] > 0) { ?><?php $root_id = $current_cate['pid']; } } ?>
<div class="lgs-item lgs-cate">
<div class="lgsi-title">分类</div>
<div class="lgsi-list">
<a href="javascript:;" class="<? if($cate_id == 0) { ?>active<? } ?>" cateID="0">全部 <span>(<?=$goods_cates['gcount']?>)</span></a><? if(is_array($_FANWE['cache']['goods']['root_cates'])) foreach($_FANWE['cache']['goods']['root_cates'] as $rootid) { ?><?php $root_count = $goods_cates['cates'][$rootid]; ?><?php $root_cate = $_FANWE['cache']['goods']['cats'][$rootid]; ?><a href="javascript:;" class="<? if($root_id == $rootid) { ?>active<? } if($root_count == 0) { ?> disabled<? } ?>" cateID="<?=$rootid?>"><?=$root_cate['name']?> <span>(<?=$root_count?>)</span></a>
<? } ?>
</div>
</div><?php $root_cate = $_FANWE['cache']['goods']['cats'][$root_id]; if(isset($root_cate['childs'])) { ?>
<div class="lgs-item cate-sub lgs-cate">
<div class="lgsi-list">
<strong><?=$root_cate['name']?>:</strong><? if(is_array($root_cate['childs'])) foreach($root_cate['childs'] as $childid) { ?><?php $cate_count = $goods_cates['cates'][$childid]; ?><?php $cate = $_FANWE['cache']['goods']['cats'][$childid]; ?><a href="javascript:;" class="<? if($cate_id == $childid) { ?>active<? } if($cate_count == 0) { ?> disabled<? } ?>" cateID="<?=$childid?>"><?=$cate['name']?> <span>(<?=$cate_count?>)</span></a>
<? } ?>
</div>
</div>
<? } ?>
<div class="lgs-item lgs-price">
<div class="lgsi-title">价格</div>
<div class="lgsi-list">
<a href="javascript:;"<? if(empty($prices)) { ?> class="active"<? } ?> price="0,0">全部</a>
<a href="javascript:;"<? if($prices == '0,100') { ?> class="active"<? } ?> price="0,100">0-100元</a>
<a href="javascript:;"<? if($prices == '100,300') { ?> class="active"<? } ?> price="100,300">100-300元</a>
<a href="javascript:;"<? if($prices == '300,500') { ?> class="active"<? } ?> price="300,500">300-500元</a>
<a href="javascript:;"<? if($prices == '500,0') { ?> class="active"<? } ?> price="500,0">500元以上</a>
</div>
</div>
</div>
<div class="list-goods-sort">
<div class="actions">
<a href="<? echo U('now/index'); ?>"<? if(ACTION_NAME == 'index') { ?> class="current"<? } ?>>所有团购</a>
<a href="<? echo U('now/today'); ?>"<? if(ACTION_NAME == 'today') { ?> class="current"<? } ?>>今日发布</a>
<a href="<? echo U('now/custom'); ?>"<? if(ACTION_NAME == 'custom') { ?> class="current"<? } ?>>个人定制</a>
</div>
<div class="sort">
<a href="javascript:;"<? if(empty($sort)) { ?> class="default"<? } ?> sort="">默认排序</a>
<a href="javascript:;"<? if($sort == 'spd') { ?> class="currentd" sort="spa"<? } elseif($sort == 'spa') { ?> class="currenta" sort="spd"<? } else { ?> sort="spa"<? } ?>>价格排序</a>
<a href="javascript:;"<? if($sort == 'dd') { ?> class="currentd" sort="da"<? } elseif($sort == 'da') { ?> class="currenta" sort="dd"<? } else { ?> sort="da"<? } ?>>折扣排序</a>
<a href="javascript:;"<? if($sort == 'bd') { ?> class="currentd" sort="ba"<? } elseif($sort == 'ba') { ?> class="currenta" sort="bd"<? } else { ?> sort="bd"<? } ?>>销量排序</a>
<a href="javascript:;"<? if($sort == 'etd') { ?> class="currentd" sort="eta"<? } elseif($sort == 'eta') { ?> class="currenta" sort="etd"<? } else { ?> sort="eta"<? } ?>>时间排序</a>
</div>
<div class="display <!--dynamic getDisplayMode-->">
<a href="javascript:;" class="d_grid" mode="grid">网格</a>
<a href="javascript:;" class="d_row" mode="row">列表</a>
</div>
</div>
<? if(defined('IS_CUSTOM_SITE')) { ?>
<div class="goods-custom-info" style="width:988px;">
<div class="msg">提示：您现在位于个人定制的团购网站页,要查看其它团购，请通过上面的"所有团购"或"今日发布"链接进行查看！</div>
<div class="btns">点击&nbsp;<input class="smallbtn" type="button" value="管理定制团购网" />&nbsp;可以添加或删除定制的团购网站。<a href="javascript:;">如何使用个人定制功能？</a></div>
<div class="info">
这么多的团购网站，看的我眼花缭乱，我该怎么办呢？"个人定制团购"为您量身打造属于自己的团购导航。<br/>
首先，点击"管理定制团购网"链接。<br/>
然后选中自己喜欢的团购网站。<br/>
最后点击"保存"按钮就可以成功定制个人的团购信息了：），还等什么呢，快点试试吧！
</div>
</div>
<? } ?>
<div id="list_goods_body">
<div id="goods_list_body" class="list-<!--dynamic getDisplayMode-->-body">
<? if(count($goods_result['list']) > 0) { ?>
<ul><? if(is_array($goods_result['list'])) foreach($goods_result['list'] as $goods) { if(defined('IS_CACHE_TPL')) { ?><?php $goods['bought'] = '<script type="text/javascript">document.write(goodsDynamics["g_'.$goods['id'].'"]["bought"]);</script>'; ?><?php $goods['post_count'] = '<script type="text/javascript">document.write(goodsDynamics["g_'.$goods['id'].'"]["post"]);</script>'; ?><?php $goods['collect_count'] = '<script type="text/javascript">document.write(goodsDynamics["g_'.$goods['id'].'"]["collect"]);</script>'; ?><?php $goods['click_count'] = '<script type="text/javascript">document.write(goodsDynamics["g_'.$goods['id'].'"]["click"]);</script>'; } ?>
<li class="item">
<div class="site_gname">
<div class="site">
<a href="<?=$goods['site_url']?>" target="_blank"><?=$goods['site_name']?></a>
</div>
<div class="name">
<a href="<?=$goods['url']?>" target="_blank" title="<?=$goods['site_name']?>：<?=$goods['city']?>今日团购:<?=$goods['name']?>" style="text-align:left;"><?=$goods['name']?></a>
</div>
</div>
<div class="img">
<a href="<?=$goods['url']?>" target="_blank"><img src="<?=$goods['small_img']?>" alt="<?=$goods['site_name']?>：<?=$goods['city']?>今日团购:<?=$goods['name']?>" /></a>
</div>
<div class="attrs-list">
<p class="sprice al">现价：<span><?=$goods['shop_price_format']?></span></p>
<p class="bought ar">销量：<span><?=$goods['bought']?></span></p>
<p class="mprice al">原价：<b><?=$goods['market_price_format']?></b></p>
<p class="post ar">评论：<span><?=$goods['post_count']?></span></p>
<p class="discount al">折扣：<span><?=$goods['discount']?></span>折</p>
<p class="collect ar">收藏：<span><?=$goods['collect_count']?></span></p>
<p class="buy al"><a href="<?=$goods['url']?>" target="_blank"><img src="<?=TPL_PATH?>images/btn-1.gif" /></a></p>
<p class="click ar">点击：<span><?=$goods['click_count']?></span></p>
</div>
<div class="attrs-text attrs1">
现价：<span class="sprice"><?=$goods['shop_price_format']?></span>
原价：<b><?=$goods['market_price_format']?></b>
折扣：<span><?=$goods['discount']?>折</span>
销量：<span><?=$goods['bought']?></span>
</div>
<div class="attrs-text attrs2">
<p class="post">评论：<span><?=$goods['post_count']?></span></p>
<p class="collect">收藏：<span><?=$goods['collect_count']?></span></p>
<p class="click">点击：<span><?=$goods['click_count']?></span></p>
<p class="buy"><a href="<?=$goods['url']?>" target="_blank"><img src="<?=TPL_PATH?>images/btn-1.gif" /></a></p>
</div>
<div class="time settime" endTime="<?=$goods['end_time']?>">
<?=$goods['end_time_lag']?>
</div>
<? if($goods['is_best'] == 1) { ?>
<span class="best"></span>
<? } elseif($goods['is_new'] == 1) { ?>
<span class="new"></span>
<? } ?>
</li>
<? } ?>
</ul>
<? } else { if(defined('IS_CUSTOM_SITE') && $no_query) { ?>
<div class="empty">你还没有定制团购网站！</div>
<? } else { ?>
<div class="empty">没有找到符合条件的团购活动！</div>
<? } } if($pager['page_count'] > 1) { ?>
<div class="blank20"></div>
<div class="pages">
<? if($pager['page'] > 1) { ?>
<a href="<?=$pager['page_prev']?>" class="page_prev">上一页</a>
<? } if(is_array($pager['page_nums'])) foreach($pager['page_nums'] as $page_num) { if($pager['page'] == $page_num['name']) { ?>
<strong><?=$page_num['name']?></strong>
<? } elseif($page_num['name'] == '...') { ?>
<span>...</span>
<? } else { ?>
<a href="<?=$page_num['url']?>"><?=$page_num['name']?></a>
<? } } if($pager['page'] < $pager['page_count']) { ?>
<a href="<?=$pager['page_next']?>" class="page_next">下一页</a>
<? } ?>
</div>
<? } ?><div class="blank20"></div>
</div>
</div>
</div>
<script type="text/javascript">
var cat = "<?=$cate_id?>";
var city = "<?=CURRENT_CITY_PY?>";
var sortOrder = "<?=$sort?>";
var area = "<?=$area_id?>";
var prices = "<?=$prices?>";
var route = <?=$_FANWE['setting']['url_route']?>;
var depr = "-";
var indexUrl = decodeURIComponent("<? echo U('now/'.ACTION_NAME,array('cat'=>'_cat_','city_py'=>'_city_','sort'=>'_sort_','prices'=>'_prices_','area'=>'_area_')); ?>");
var customSiteCount = 12;

jQuery(function($){
$(".img img").lazyload({"placeholder":"<?=TPL_PATH?>images/img_loading.gif","failurelimit":10});

$(".area-sub").show();

$(".area-sub").each(function(){
var title_width = $('strong',this).width();
$('.lgsi-list div',this).width(903 - title_width);
});

$(".sia").hover(function(){
$(".sia").removeClass("active");
$(this).addClass("active");
},function(){
$(this).removeClass("active");
});

$(".lgs-cate a").click(function(){
if($(this).hasClass('disabled'))
return false;
cat = this.getAttribute("cateID");
goToUrl();
});

$(".lgs-area a").click(function(){
if($(this).hasClass('disabled'))
return false;

area = this.getAttribute("areaID");
goToUrl();
});

$(".list-goods-sort .sort a").click(function(){
sortOrder = this.getAttribute("sort");
goToUrl();
});

$(".lgs-price a").click(function(){
prices = this.getAttribute("price");
goToUrl();
});

$(".list-goods-sort .display a").click(function(){
mode = this.getAttribute("mode");
$.cookie(COOKIE_PRE + 'display_mode', mode,{"expires":7});
$("#goods_list_body").attr("className","list-"+mode+"-body");
$(".list-goods-sort .display").attr("className","display "+mode);	
});

<? if(defined('IS_CUSTOM_SITE')) { ?>
$(".goods-custom-info .btns a").click(function(){
$(".goods-custom-info .info").toggle();
});

$(".goods-custom-info .btns input").click(function(){
$.showWindow({"title":"定制个人团购网站(最多可添加12个)","html":'<div class="select_sites"></div>',"msg":"提示：如果您选了其它城市才有的团购网，只有在切换到该城市后您才能看到相应的定制信息。"});
$.showLoading("#fwindow .fwindow_content");
$.ajax({
type: "GET",
dataType: "html",
cache:false,
url: SITE_PATH + "/services/ajax.php",
data:{"action":"custom_site"},
success: function(html){
$("#fwindow .select_sites").html(html);
$.closeLoading("#fwindow .fwindow_content");

$(".select_sites .ss_tabs .item").click(function(){
$(".select_sites .ss_tabs .item").removeClass("current");
$(this).addClass("current");

$(".select_sites .sites_box").hide();
$(".select_sites .sites_box[rel='"+this.getAttribute("rel")+"']").show();
});

$(".select_sites .sites_py li").click(function(){
$("li",$(this).parent()).removeClass("current");
$(this).addClass("current");

$("dl",$(this).parent().parent()).hide();
$("dl[rel='"+this.getAttribute("rel")+"']",$(this).parent().parent()).show();
});

$(".select_sites .sites_box label input").change(function(){

$(".select_sites .sites_box input.site_id_"+this.value).attr("checked",this.checked);
var siteCount = getCustomSiteInfo()[1];

if(siteCount <= customSiteCount)
{
$(".select_sites .custom_count").html(siteCount);
}
else
{
$(".select_sites .sites_box input.site_id_"+this.value).attr("checked",false);
alert("最多可定制"+customSiteCount+"个团购网站");
}
});

$(".select_sites .custom_count").html(getCustomSiteInfo()[1]);
$(".select_sites .sites_box label input").each(function(i){
if(this.checked)
{
$(".select_sites .sites_box input.site_id_"+this.value).attr("checked",true);
}
});

$(".select_sites .save_select_site").click(function(){
var customInfo = getCustomSiteInfo();
if(customInfo[1] > customSiteCount)
{
alert("最多可定制"+customSiteCount+"个团购网站");
}
else
{
$.showLoading("#fwindow .fwindow_content");
$.ajax({
type: "GET",
cache:false,
url: SITE_PATH + "/services/ajax.php",
data: {"action":"save_custom_site","site_ids":customInfo[0]},
success: function(data){
$.closeLoading("#fwindow .fwindow_content");
$("#fwindow .fwindow_close").click();
},
error:function(r, t, e){
$.closeLoading("#fwindow .fwindow_content");
alert('保存定制信息失败，请重新保存或联系管理员！');
}
});
}
});
}
});
});
<? } ?>
});

function getCustomSiteInfo()
{
var siteIds = '';
$(".select_sites .sites_box label input").each(function(i){
if(this.checked)
{
if(siteIds == '')
siteIds += this.value;
else
{
if((','+siteIds+',').indexOf(','+this.value+',') < 0)
siteIds+= ',' + this.value;
}
}
});

if(siteIds != '')
return [siteIds,siteIds.split(',').length];
else
return ['',0];
}

function goToUrl()
{
if(cat == 0)
indexUrl = clearParm(indexUrl,'_cat_',"",'cat');
else
indexUrl = clearParm(indexUrl,'_cat_',cat,'cat');

if(area == 0)
indexUrl = clearParm(indexUrl,'_area_',"",'area');
else
indexUrl = clearParm(indexUrl,'_area_',area,'area');

if(prices == "0,0")
indexUrl = clearParm(indexUrl,'_prices_',"",'prices');
else
indexUrl = clearParm(indexUrl,'_prices_',prices,'prices');

indexUrl = clearParm(indexUrl,'_city_',city,'city_py');
indexUrl = clearParm(indexUrl,'_sort_',sortOrder,'sort');
    
    //2011-02-10 update
    var fun = function(){
        location.href=indexUrl;
    };

    setTimeout(fun,1);
}

function clearParm(url,search,replace,parm)
{
if(replace == "")
{
if(route > 0)
return url.replace(depr+parm+depr+search,"");
else
return url.replace("&"+parm+"="+search,"");
}
else
return url.replace(search,replace);
}
</script>		<div class="blank9"></div>
<div id="links" class="hbox">
<div class="box">
<div class="t"></div>
<div class="m">
<ul>
                        <?php $foot_city_index = 0; if(is_array($_FANWE['cache']['city']['all'])) foreach($_FANWE['cache']['city']['all'] as $city) { ?>                        <? if($foot_city_index < $_FANWE['setting']['foot_num']) { ?>
<li style="width:60px; height:22px; border:none; line-height:22px; margin:0 8px 0 0;"><a href="<?=$city['url']?>"><?=$city['name']?>团购</a></li>
                        <?php $foot_city_index++; ?>                        <? } } ?>
</ul>
</div>
<div class="b"></div>
<div class="close" title="关闭"></div>
</div>
<div class="blank9"></div>
</div>
<div id="links" class="hbox friend">
<div class="box">
<div class="t"></div>
<div class="m">
<? if(count( $_FANWE['cache']['link']['img']) > 0) { ?>
<ul><? if(is_array($_FANWE['cache']['link']['img'])) foreach($_FANWE['cache']['link']['img'] as $link) { ?><li><a href="<?=$link['url']?>" target="_blank" ><img src="<?=$link['img']?>" alt="<?=$link['name']?>"<? if($link['height'] > 0) { ?> height="<?=$link['height']?>"<? } ?> width="<? if($link['width'] > 0) { ?><?=$link['width']?><? } else { ?>88<? } ?>"/></a></li>
<? } ?>
</ul>
<div class="clear"></div>
<? } if(count( $_FANWE['cache']['link']['txt']) > 0) { ?>
<ul><? if(is_array($_FANWE['cache']['link']['txt'])) foreach($_FANWE['cache']['link']['txt'] as $link) { ?><li class="txt"><a href="<?=$link['url']?>" target="_blank"><?=$link['name']?></a></li>
<? } ?>
</ul>
<div class="blank6"></div>
<? } ?>
</div>
<div class="b"></div>
</div>
<div class="blank9"></div>
</div>
<div id="footer">
<div class="copyright"> <a href="<? echo U('site/submit'); ?>" >网站提交</a>&nbsp;|&nbsp; <a href="<? echo U('message/index'); ?>">意见反馈</a><? if(is_array($_FANWE['cache']['nav']['bottom'])) foreach($_FANWE['cache']['nav']['bottom'] as $nav) { ?>&nbsp;|&nbsp;<a href="<?=$nav['url']?>" target="<?=$nav['target']?>" ><?=$nav['name']?></a><? } ?>
<br />
<div class="info"><? echo stripslashes($_FANWE['setting']['page_bottom']); ?> </div>
</div>
</div>
<div id="fscreen"></div>
<div id="fwindow">
<table cellspacing="0" cellpadding="0" class="fwindow_box">
<tr><td>
<div class="fwindow_top">
<h3></h3><a title="关闭" class="fwindow_close close" href="javascript:;">关闭</a>
</div>
</td></tr>
<tr><td class="fwindow_body">
<div class="fwindow_msg"></div>
<div class="fwindow_content"></div>
</td></tr>
</table>
</div>
<div id="floading">
<div class="floading">
<div class="floading_bg" style="position:absolute; left:0; top:0; z-index:1; background:#fff;"></div>
<div class="floading_body" style="position:absolute; left:0; top:0; z-index:2;"></div>
</div>
</div>
</body><!--dynamic echoScript--></html>